<?php

namespace app\admin\validate;
use think\Validate;

class Empower extends Validate
{
    protected $rule = [
        'umobile'       => 'require|mobile',
        'name'          => 'require',
        'uname'         => 'require',
        'domain'        => 'require',
        'end_time'      => 'require',
    ];

    protected $message = [
        'umobile.require'  => '手机号不能为空',
        'umobile.mobile'   => '手机号码格式不正确',
        'name.require'     => '网站名称不能为空',
        'uname.require'    => '联系人不能为空',
        'domain.require'   => '请输入有效的域名',
        'end_time.require' => '到期时间不能为空',
    ];
}
